﻿using IntelligentAgriculture.Contracts.Dto.Input.EarTagInput;
using IntelligentAgriculture.Contracts.Dto.Input.EliminationmodelsInput;
using IntelligentAgriculture.Contracts.Dto.Output.EarTagOutput;
using IntelligentAgriculture.Contracts.Dto.Output.EliminationmodelsOutput;
using IntelligentAgriculture.Contracts.Dto.Output.PageOutput;
using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Contracts.Interface.EliminationModelService
{
    public interface IEliminationModelService
    {
        /// <summary>
        /// 添加淘汰信息
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task<int> Add(List<Eliminationmodel> entity);
        /// <summary>
        /// 逻辑删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> Delete(int id);

        /// <summary>
        /// 批量逻辑删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> DeleteRange(IEnumerable<int> ids);


        /// <summary>
        /// 修改功能
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task<int> UpateEartag(Eliminationmodel entity);

        /// <summary>
        /// 反填功能
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<Eliminationmodel> Find(int id);


        /// <summary>
        /// 显示，查询，分页
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<PagesOutput<EliminationmodelShowOutput>> GetShow(EliminationmodelShowInput input);
    }
}
